package com.edu.neusoft.elec_shop.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.edu.neusoft.elec_shop.mapper.CommentsMapper;
import com.edu.neusoft.elec_shop.domain.Comments;
@Service
public class CommentsService{

    @Resource
    private CommentsMapper commentsMapper;

    
    public int deleteByPrimaryKey(Long commenttId) {
        return commentsMapper.deleteByPrimaryKey(commenttId);
    }

    
    public int insert(Comments record) {
        return commentsMapper.insert(record);
    }

    
    public int insertSelective(Comments record) {
        return commentsMapper.insertSelective(record);
    }

    
    public Comments selectByPrimaryKey(Long commenttId) {
        return commentsMapper.selectByPrimaryKey(commenttId);
    }

    
    public int updateByPrimaryKeySelective(Comments record) {
        return commentsMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Comments record) {
        return commentsMapper.updateByPrimaryKey(record);
    }

}
